<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>医院事务管理</h4>
				</div>
			</div>

			<form action="" method="get" name="search">
				<div class="row-fluid filter-block">
					<!--
					<div class="pull-left">
						<a class="btn-flat success" onclick="document.forms['batch'].submit();">批量通过</a>
					</div> -->
					<div class="pull-right">
						姓名：
						<input type="text" class="search" name="real_name" value="<?php echo $real_name?>"></input>
						<a class="btn-flat success" onclick="document.forms['search'].submit();">查询</a>
					</div>
					<div class="pull-right" style="display: none;">
						<a class="btn-flat success" href="/staff/add">添加</a>
					</div>
				</div>
			</form>
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
					<tr>
						<td>姓名</td>
						<td>性别</td>
						<td>手机号</td>
						<!-- <td>微信昵称</td> -->
						<td>OpenId</td>
						<td>操作</td>
					</tr>
					</thead>
					<?php foreach ($doctorList as $item):?>
						<tr>
							<td><?php echo $item['real_name']?></td>
							<td><?php if( $item['sex'])echo "男";else echo "女" ?></td>
							<td><?php echo $item['phone']?></td>
							<!-- <td><?php echo $item['nick_name']?></td> -->
							<td><?php echo $item['wxid']?></td>
							<td>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/staff/edit?id=<?php echo $item['s_id'] ?>'">编辑</button>
								<button type="button" class=" btn-flat primary" onclick="del(<?php echo $item['s_id']?>)">删除</button>
							</td>
						</tr>
					<?php endforeach;?>
					</form>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
		<?php echo $pagination;?>
	</div>
</div>
<<script type="text/javascript">
	<!--
	function del(pid)
	{
		if(confirm("确定要删除吗？"))
		{
			window.location.href = "/staff/delet?id=" + pid;
		}
	}
	//-->
</script>
